﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="product_edit.aspx.cs" Inherits="product_edit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <style type="text/css">
        

    </style>
</head>
<%--订单信息，管理员需要审批产品--%>
<body>
    <form id="form1" runat="server">
      <div>
      
        <div style="height:10px"></div>
        
        <div style="margin:0 auto; width:700px; height:480px; border:0">
          <div style="width:700px; height:31px; border:0">
            <img src="image/book-top.jpg" alt="" width="700px" height="31px" />
          </div>
          <div>
            <div style="width:158px; height:443px; border:0; float:left">
              <img src="image/book-left.jpg" alt="" />
            </div>
          <div style="width:542px; height:443px; border:0; float:right">
          <div style="width:509px; height:374px; border:0; float:left">
        
            <div style=" margin:0 auto; width:509px; height:30px; text-align:center; font-size:x-large; background-color: #33CCFF" >
              产品信息
            </div>
            <div style="width:509px; height:334px; margin:0 auto; text-align:center">
               <asp:GridView ID="productList" AutoGenerateColumns="False" AllowPaging="True" PageSize="10"
                  runat="server"  Width="509px"  EmptyDataText="没有数据记录！！" RowStyle-Height="18px"
                    onrowcommand="productList_RowCommand" 
                    onrowdatabound="productList_RowDataBound">
       
                  <Columns>      
                    <asp:BoundField DataField="Book_Idint" HeaderText="产品编号" Visible="false"></asp:BoundField>
                    <asp:BoundField DataField="Book_Namestr" HeaderText="产品名称" ItemStyle-Width="346px" ></asp:BoundField>
                    <asp:BoundField DataField="SmallType_Namestr" HeaderText="产品分类" ItemStyle-Width="80px" ></asp:BoundField>
    
                    <asp:HyperLinkField DataNavigateUrlFields="Book_Idint" DataNavigateUrlFormatString="product_add.aspx?Book_Idint={0}"
                              ItemStyle-Width="40px"        HeaderText="查看" Target="mainFrame" Text="详细" />
                  
                    <asp:TemplateField ItemStyle-Width="40px"   HeaderText="删除">  
                        <ItemTemplate>  
                            <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="deleteBook" 
                            CommandArgument='<%#DataBinder.Eval(Container.DataItem,"Book_Idint")%>'   Text="删除" OnClientClick='<%#  "if (!confirm(\"你确定要删除吗?\")) return false;"%>'></asp:LinkButton>  
                        </ItemTemplate> 
                    </asp:TemplateField>  
                     
                  </Columns>
                  <PagerSettings Visible="False" />
                </asp:GridView>
                        <asp:LinkButton ID="btnFirst" CommandArgument="first" OnClick="PagerButtonClick" runat="server">首 页</asp:LinkButton>
                        <asp:LinkButton ID="btnPrev" CommandArgument="prev" OnClick="PagerButtonClick" runat="server">上一页</asp:LinkButton>
                        <asp:LinkButton ID="btnNext" CommandArgument="next" OnClick="PagerButtonClick" runat="server">下一页</asp:LinkButton>
                        <asp:LinkButton ID="btnLast" CommandArgument="last" OnClick="PagerButtonClick" runat="server">尾 页</asp:LinkButton>
                        <asp:Label ID="LblCurrentIndex" runat="server"></asp:Label>
                        <asp:Label ID="LblPageCount" runat="server"></asp:Label>
                        <asp:Label ID="LblRecordCount" runat="server"></asp:Label>
             </div>
        
           </div>
           <div style="width:33px; height:374px; float:right; border:0">
             <img src="image/book-right.jpg" width="33px" height="374" alt="" />
           </div>
           <div style="width:542px; height:67px; border:0">
             <img src="image/book-bottom.jpg" alt="" width="542" height="67" />
           </div>
           </div>
          </div>
        </div>
      </div>
    </form>
</body>
</html>
